package com.jader.beans;

import java.io.Serializable;

public class Seller_detail implements Serializable {
	private static final long serialVersionUID = 1L;
	private Seller seller;
	private String user_picture;
	private int count;
	private boolean isCollect;

	public Seller_detail() {
		super();
	}

	public Seller_detail(Seller seller, String user_picture, int count,
			boolean isCollect) {
		super();
		this.seller = seller;
		this.user_picture = user_picture;
		this.count = count;
		this.isCollect = isCollect;
	}

	public Seller getSeller() {
		return seller;
	}

	public void setSeller(Seller seller) {
		this.seller = seller;
	}

	public String getUser_picture() {
		return user_picture;
	}

	public void setUser_picture(String user_picture) {
		this.user_picture = user_picture;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public boolean isCollect() {
		return isCollect;
	}

	public void setCollect(boolean isCollect) {
		this.isCollect = isCollect;
	}

	@Override
	public String toString() {
		return "Seller_detail [seller=" + seller + ", user_picture="
				+ user_picture + ", count=" + count + ", isCollect="
				+ isCollect + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((seller == null) ? 0 : seller.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Seller_detail other = (Seller_detail) obj;
		if (seller == null) {
			if (other.seller != null)
				return false;
		} else if (!seller.equals(other.seller))
			return false;
		return true;
	}

}
